import request from '@/utils/request'

export function singlePayment(data) {
  return request({
    url: '/ntocc-tms-api/finance/singlePayment',
    method: 'post',
    params: data
  })
}
export function translateAccount(query) {
  return request({
    url: '/ntocc-tms-api/collectionAccountCheck/translateAccount',
    method: 'get',
    params: query
  })
}
export function collectionAccountCheck(detailCodes, billType) {
  return request({
    url: '/ntocc-tms-api/collectionAccountCheck',
    method: 'post',
    params: {
      detailCodes: detailCodes,
      billType: billType
    }
  })
}
export function collectionDetail(code) {
  return request({
    url: `ntocc-tms-api/collectionAccountCheck/${code}`,
    method: 'get'
  })
}
export function collectionPost(query) {
  return request({
    url: '/ntocc-tms-api/collectionAccountCheck',
    method: 'get',
    params: query
  })
}
export function page4Review(query) {
  return request({
    url: '/ntocc-tms-api/collectionAccountCheck/page4Review',
    method: 'get',
    params: query
  })
}
export function auditPut(data) {
  return request({
    url: '/ntocc-tms-api/collectionAccountCheck/audit',
    method: 'put',
    params: data
  })
}
export function collectionPut(data) {
  return request({
    url: '/ntocc-tms-api/collectionAccountCheck/collection',
    method: 'put',
    params: data
  })
}
export function defaultApi(query) {
  return request({
    url: '/ntocc-tms-api/orderDefaultInfo/default',
    method: 'get',
    params: query
  })
}

export function DefaultSubmitOrder(data) {
  return request({
    url: '/ntocc-tms-api/orderDefaultInfo/submitOrder',
    method: 'post',
    data
  })
}

export function DefaultUpdateOrder(data) {
  return request({
    url: '/ntocc-tms-api/orderDefaultInfo/updateOrder',
    method: 'put',
    data
  })
}
